
public class lx {

	
	//  count(n)=count(n-1)+count(n-m)
	//n is the n month later rabit counts
	//m is interval rabit birth baby time
	public static int count=0;
	public static void main(String[] argc){
		
	
				int nu=birth(5,2);
				echo(nu);
	}
	
	public static int  birth(int month,int newMonth){
		
			if(month == 0 || newMonth==0){
	
			   
				return 0;
			}
		
		if( month <= 0){
			
			
			
			return  1;
		}
		
		return birth(month-1,newMonth)+birth(month-newMonth,newMonth);
	}
	
	
	public static void echo(int  msg){
		
		
		System.out.print(msg);
	}
	public static void echo(String msg){
		
		
		System.out.print(msg);
	}

	

}

